package server;

import java.io.IOException;
import java.net.ServerSocket;

public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {

    // opens a connection
    ServerSocket server = null;
    
    try {
      server = new ServerSocket(4444);
      // opened
      new Thread(new PortListener(server)).start();
    } catch (IOException e) {
      System.out.println("Failed to listen");
      System.exit(1);
    }
    
    System.out.println("Thank you.");
    
  }

}
